Skip to content

feat: new helper function fetchImportMaps#358

Merged
wkillerud merged 2 commits into
mainfrom
fetch-import-maps
May 8, 2025
Merged

feat: new helper function fetchImportMaps#358
wkillerud merged 2 commits into
mainfrom
fetch-import-maps

Conversation

@wkillerud
Copy link
Copy Markdown
Contributor

@wkillerud wkillerud commented May 8, 2025

Centralize the code for fetching import maps, which right now is duplicated (poorly) in five different modules. I mapped out the dependencies of the developer tools and they all use common.

Followup to:

Turns out we have this bug in webpack-plugin as well, and similar fetch-based code in eslint-plugin and postcss-plugin. Let's centralize the code and tests for this in one location so we don't have to duplicate all the different error messages and such.

After discussing with @digitalsadhu we agreed undici is overkill here, and we can just use fetch. It follows redirects by default, apparently up to 20.

Centralize the code for fetching import maps, which right now
is duplicated (poorly) in five different modules.
@wkillerud wkillerud merged commit 0f89645 into main May 8, 2025
6 checks passed
@wkillerud wkillerud deleted the fetch-import-maps branch May 8, 2025 11:40
github-actions Bot pushed a commit that referenced this pull request May 8, 2025
# [5.1.0](v5.0.4...v5.1.0) (2025-05-08)

### Features

* new helper function fetchImportMaps ([#358](#358)) ([0f89645](0f89645))
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2025

🎉 This PR is included in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant